package com.lanchetech.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.SearchHistory;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SearchHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SearchHistory record);

    int insertSelective(SearchHistory record);

    SearchHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SearchHistory record);

    int updateByPrimaryKey(SearchHistory record);

    SearchHistory findOneByUserIdAndContent(@Param("userId")Long userId,@Param("content")String content);

    int deleteByUserId(@Param("userId")Long userId);

    List<SearchHistory> findAllByUserId(@Param("userId")Long userId);

}